﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Template_uc_Header : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    //Convert to English Language
    protected void img_English_Click(object sender, ImageClickEventArgs e)
    {
        HttpCookie vi_Cook = new HttpCookie("Language");
        vi_Cook.Value = "en-US";
        vi_Cook.Expires = DateTime.MaxValue;
        Response.Cookies.Add(vi_Cook);
        Response.Redirect(Request.UrlReferrer.AbsoluteUri);
    }
    //Convert to Vietnam Language
    protected void img_Vietnam_Click(object sender, ImageClickEventArgs e)
    {
        HttpCookie vi_Cook = new HttpCookie("Language");
        vi_Cook.Value = "vi-VN";
        vi_Cook.Expires = DateTime.MaxValue;
        Response.Cookies.Add(vi_Cook);
        Response.Redirect(Request.UrlReferrer.AbsoluteUri);
    }
}
